You are here: Lua Scripting Resources eGuide > Introduction to Writing Lua Scripts > Writing Lua Scripts > Using the Toolbar

Using the Toolbar

The following table describes the toolbar options.

 

Tool name

Tool function

Suspend Script

Pauses the script execution.

Resume Script

Resumes the script execution.

While debugging, the script continues to execute until the next breakpoint or the end of the script.

Set Script

Starts the script execution.

Focus Script

Sets the focus to the page in the document where the script application is attached:

In a TI‑Nspire™ document, sets the focus to the page.
In a PublishView™ document, sets the focus to the frame on the page.

Step Into

While debugging, executes the current statement. If the statement calls any functions, the debugger stops at the first line of each function.

Step Over

While debugging, executes the current statement.

If the statement calls any functions, the debugger does not stop within the function unless the function contains a breakpoint.

Enable Breakpoints

Switches from normal mode to debugging mode.

Disable Breakpoints

Switches back from debugging mode to normal mode and resumes the script.

Set Permissions

Sets permission levels to Protected, View Only, or Unprotected and allows you to set a password for the script.

Using the Tools Panel

At the bottom of the window, the Tools panel shows the scripting data. For more information, see the Debugging Scripts section.

 

Tab

Window Display

Console

Script errors are printed here.

Print statements embedded in the script also print here.

Globals

Selected global variables are displayed.

To select a global variable for display, select Click to add new watch variable at the bottom of the Tools panel.

Call Stack

Displays the call tree for the currently executing function.

Locals

Local variables in the current function’s scope are displayed.

Resources

Upload, insert, and manage images here.

Using the Status Bar

The status bar at the bottom of the window shows basic script data, as described in this example:

stopwatch, 1.1, 4:1, Running

Name of the document that the script application is attached to (stopwatch)
Problem and page number (1.1)
Script line and character, (4:1 describing line 4 and character 1)
Operational state of the script (Running). Note the possible states:
- Normal mode: Running, Paused, or Error
- Debugging mode: Running (debugging), Paused, or Error